fl=load('K:\_Flakes\2011-04-26 - FIB grid 1\scan_PL_008.txt')';
pcolor(fl);
colormap(hsl2rgb([2/3*ones(512,1) ones(512,1) log10(linspace(1,10,512))']));
shading flat
axis image
set(gca,'xtick',[],'ytick',[],'box','off')
pause(1)
im=getframe(gca);
imwrite(im.cdata,fullfile(fileparts(mfilename('fullpath')),'scan_PL_008.png'),'png');

fl=load('K:\_Flakes\2011-04-26 - FIB grid 1\scan_003.txt')';
clf

im=image(fl);
set(im,'cdatamapping','scaled');
set(gca,'clim',[0,1])
colormap(hsl2rgb([2/3*ones(256,1) ones(256,1) log10(linspace(1,10,256))']));
caxis([50 150]);
set(gca,'xtick',[],'ytick',[],'box','off')
pause(1)
% colim=(fl-min(fl(:)))/range(fl(:))*size(colormap,1);
% imwrite(uint8(colim),colormap,'scan_003b.png','png');
im=getframe(gca);
imwrite(im.cdata,fullfile(fileparts(mfilename('fullpath')),'scan_003.png'),'png');